<template>
	<view class="pie-com-box chartsHeight">
		<!-- 饼图 -->
		<qiun-data-charts type="pie" :canvasId="pieCanvasId" :eopts="pieEopts" :chartData="pieChartData" :echartsH5="true" :echartsApp="true" />
	</view>
</template>

<script>
import { pieChart } from '@/utils/echarts.config.js';
export default {
	name: 'pieY',
	props: {
		pieCanvasId: {
			type: String
		},
		pieChartData: {
			type: Object,
			default: function() {
				return {};
			}
		}
	},
	data() {
		return {
			pieEopts: {},
		};
	},
	mounted() {
		this.pieEopts = JSON.parse(JSON.stringify(pieChart.option));
	},
	methods: {}
};
</script>

<style></style>
